package yxxy.c_025;

import java.text.SimpleDateFormat;
import java.util.Date;

public class t {
    public static void main(String[] args) {
        String[] strs = {"1568258611024", "1568258611524", "1568258612024", "1568258613024", "1568258612524"};
                     //2019-09-12 11:23:31, 2019-09-12 11:23:31, 2019-09-12 11:23:32, 2019-09-12 11:23:33, 2019-09-12 11:23:32,
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        StringBuffer sb =new StringBuffer();
        for (int i = 0; i<strs.length;i++){
            Date date = new Date(Long.parseLong(strs[i]));
            String format = sdf.format(date);
            sb.append(format+", ");
        }
        System.out.println(sb.toString());
    }
}
